/*
Copyright SecureKey Technologies Inc. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
*/
package ichain

// The Inode ichain节点抽象接口，具备处理提案的功能
type Inode interface {
	// ProposalProcessor 提案处理
	ProposalProcessor
	// IAMID 返回inode节点iam
	IAMID() string
	//URL 返回inode url
	URL() string
	// Properties 返回inode属性
	Properties() Properties
}

type Properties map[Property]interface{}

type Property = string

const (
	// PropertyContracts 部署的合约个数
	PropertyContracts Property = "Contracts"
	// PropertyLedgerHeight 账本高度
	PropertyLedgerHeight Property = "LedgerHeight"
	// PropertyLeftChain 是否离链
	PropertyLeftChain Property = "LeftChain"
)
